//
//  StatsViewController.h
//  FuelLog
//
//  Created by Pure Mass Communications on 9/1/08.
//  Copyright 2008 . All rights reserved.
//
//  Placed under GPL v2 with the kind permission of Pure Mass Communications
//
//  Modified to make compile under SDK 3.1 by Olaf Greck in May 2010
//
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

#import <UIKit/UIKit.h>
#import "QuartzView.h"

@interface StatsViewController : UIViewController {
	NSDate *beginDate;
	NSDate *endDate;
	
	IBOutlet UILabel *carLabel;
	IBOutlet UIButton *last10Button;
	IBOutlet UIButton *last3mButton;
	IBOutlet UIButton *last6mButton;
	IBOutlet UIButton *last1yButton;
	IBOutlet UIButton *allButton;
	IBOutlet UIButton *beginDateButton;
	IBOutlet UIButton *endDateButton;
	IBOutlet UILabel *distanceText;
	IBOutlet UILabel *distanceLabel;
	IBOutlet UILabel *fuelText;
	IBOutlet UILabel *fuelLabel;
	IBOutlet UILabel *dpfText;
	IBOutlet UILabel *dpfLabel;
	IBOutlet UILabel *costLabel;
	IBOutlet UILabel *cpdText;
	IBOutlet UILabel *cpdLabel;
	IBOutlet UILabel *errorText;
	
	QuartzView *quartzView;
}

@property (nonatomic, copy) NSDate *beginDate;
@property (nonatomic, copy) NSDate *endDate;

- (IBAction)last10Click:(id)sender;
- (IBAction)last3mClick:(id)sender;
- (IBAction)last6mClick:(id)sender;
- (IBAction)last1yClick:(id)sender;
- (IBAction)allClick:(id)sender;
- (IBAction)selectBeginDate:(id)sender;
- (IBAction)selectEndDate:(id)sender;
- (IBAction)done:(id)sender;

- (void)setBoxes;

@end
